Return TRUE if the cache is newer than the directory. (#172852, Jacob
authorMatthias Clasen <mclasen@redhat.com>
Thu, 7 Apr 2005 12:41:40 +0000 (12:41 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 7 Apr 2005 12:41:40 +0000 (12:41 +0000)
2005-04-07  Matthias Clasen  <mclasen@redhat.com>

* gtk/updateiconcache.c (is_cache_up_to_date): Return
TRUE if the cache is newer than the directory.  (#172852,
Jacob Kroon)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/updateiconcache.c

index 70585fcc2848d41c7cbd01767a38c2c1e1eb4740..7946d527210cc186314d4f07a4966fe8d733d96f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/updateiconcache.c (is_cache_up_to_date): Return 
+       TRUE if the cache is newer than the directory.  (#172852,
+       Jacob Kroon)
+
        * configure.in: Replace an explicit pkg-config by 
        $PKG_CONFIG.  (#168074, Hans-Wolfgang Loidl)
        
index 70585fcc2848d41c7cbd01767a38c2c1e1eb4740..7946d527210cc186314d4f07a4966fe8d733d96f 100644 (file)
@@ -1,5 +1,9 @@
 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/updateiconcache.c (is_cache_up_to_date): Return 
+       TRUE if the cache is newer than the directory.  (#172852,
+       Jacob Kroon)
+
        * configure.in: Replace an explicit pkg-config by 
        $PKG_CONFIG.  (#168074, Hans-Wolfgang Loidl)
        
index 70585fcc2848d41c7cbd01767a38c2c1e1eb4740..7946d527210cc186314d4f07a4966fe8d733d96f 100644 (file)
@@ -1,5 +1,9 @@
 2005-04-07  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/updateiconcache.c (is_cache_up_to_date): Return 
+       TRUE if the cache is newer than the directory.  (#172852,
+       Jacob Kroon)
+
        * configure.in: Replace an explicit pkg-config by 
        $PKG_CONFIG.  (#168074, Hans-Wolfgang Loidl)
        
index 8063f467a078f036f2fb4c225021967df80825ee..82aa18d539ba91423b56a564c66ac8a4eb68f937 100644 (file)
@@ -78,7 +78,7 @@ is_cache_up_to_date (const gchar *path)
     }
 
   /* Check mtime */
-  return cache_stat.st_mtime <= path_stat.st_mtime;
+  return cache_stat.st_mtime >= path_stat.st_mtime;
 }
 
 typedef struct